package mspbots.hubspot.client.core;


import mspbots.hubspot.common.QueryBody;

/**
 * mspbots.data.mspbots.data.hubspot.core.TicketsService
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/8/4
 */
public interface BaseApiService extends BaseSyncService {

    /**
     * query find all entity
     *
     * @param tenantId  tenant id
     * @param queryBody search query params
     * @param <T>       return entity class type
     * @return all page model
     */
    default <T> T search(Long tenantId, QueryBody queryBody) {
        return null;
    }

    /**
     * query  entity properties
     *
     * @param tenantId tenant id
     * @param <T>      return entity class type
     * @return entity properties json
     */
    default <T> T properties(Long tenantId) {
        return null;
    }

}
